﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace Ewts.Cumtomer
{
    
    public partial class cumtomerBytallyClassify : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                bindData();
            }
        }
        //绑定分类汇总数据 by 2013.03.27 梁玲
        protected void bindData()
        {
            if (Request["cjoid"].ToString().Trim() != "" && Request["cjoid"] != null)
            {
                string cjoid = Request["cjoid"].ToString().Trim();
                DataTable dt = new DataLib.BLL.InStorage().GetList(" cjoid=" + cjoid +" and outid <> 0").Tables[0];
                if (dt != null&&dt.Rows.Count>0)
                {
                    DataTable dtun = new DataTable();
                    dtun = new DataLib.BLL.unProcessed().GetList("inSid=" + dt.Rows[0]["id"]).Tables[0];
                    reptun.DataSource = dtun;
                    reptun.DataBind();
                }
            }
        }
    }
}